import {connect} from "react-redux";
import Calculate from "../components/Calculate";
import {decreaseFun, incrementFun} from "../reduce/count_action";

function mapStateToProps(state){
 return{
     count:state
 }
}

function mapDispatchToProps(dispatch){
    return{
        incre:value=>dispatch(incrementFun(value)),
        decr:value=>dispatch(decreaseFun(value))
    }
}
export default connect(mapStateToProps,mapDispatchToProps)(Calculate)
